package br.com.SRP.Modelo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * The persistent class for the eqp08Combustivel database table.
 * 
 */
@Entity
@Table(name="eqp08Combustivel")
public class Eqp08Combustivel implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="codigo")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private int codigo;

	@Temporal(TemporalType.TIMESTAMP)
	private java.util.Calendar data;

	private String combustivel;

	private String status;
//
//	//bi-directional many-to-one association to Eqp01Equipamento
//	@OneToMany(mappedBy="eqp08combustivel")
//	private Set<Eqp01Equipamento> eqp01equipamentos;

	//bi-directional many-to-one association to Eqp02Tipo
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "usuario", referencedColumnName = "codigo")
	private Sis01Usuario sis01Usuario;

    public Eqp08Combustivel() {
    }

	public int getCodigo() {
		return this.codigo;
	}

	public void setCodigo(int codigo) {
		this.codigo = codigo;
	}

	public String getCombustivel() {
		return this.combustivel;
	}

	public void setCombustivel(String combustivel) {
		this.combustivel = combustivel;
	}

	public java.util.Calendar getData() {
		return this.data;
	}

	public void setData(java.util.Calendar data) {
		this.data = data;
	}
	
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	public Sis01Usuario getSis01Usuario() {
		return this.sis01Usuario;
	}

	public void setSis01Usuario(Sis01Usuario sis01Usuario) {
		this.sis01Usuario = sis01Usuario;
	}
	
	
}